package com.dr.entity;
/**
 * 产品实体类
 * @author Administrator
 *
 */
public class ProductVO {
	private String name;
	private String type_name;
	private Double beginPrice;
	private Double endPrice;
	private Integer type_id;
	
	//下面三个是分页用的
	private Integer page;
	private Integer limit;
	private Integer offset;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType_name() {
		return type_name;
	}
	public void setType_name(String type_name) {
		this.type_name = type_name;
	}
	public Double getBeginPrice() {
		return beginPrice;
	}
	public void setBeginPrice(Double beginPrice) {
		this.beginPrice = beginPrice;
	}
	public Double getEndPrice() {
		return endPrice;
	}
	public void setEndPrice(Double endPrice) {
		this.endPrice = endPrice;
	}
	public Integer getPage() {
		return page;
	}
	public Integer getType_id() {
		return type_id;
	}
	public void setType_id(Integer type_id) {
		this.type_id = type_id;
	}
	public void setPage(Integer page) {
		this.page = page;
	}
	public Integer getLimit() {
		if (limit==null) {
			return 10;
		}else {
			return limit;
		}
	}
	public void setLimit(Integer limit) {
		this.limit = limit;
	}
	public Integer getOffset() {
		if (page==null) {
			return 0;
		}else {
			return (page-1)*limit;
		}
	}
	public void setOffset(Integer offset) {
		this.offset = offset;
	}
	
	
}
